Class PortInfo

java.lang.Object
com.cisco.pt.mu.PortInfo

public class PortInfo extends Object
This is a data class that contains port information elements from the Port Advertisement Messages.
  • Field Details

    • id

      public int id
    • type

      public int type
    • name

      public String name
    • connected

      public boolean connected
    • uuid

      public UUID uuid
  • Constructor Details

    • PortInfo

      public PortInfo(int id, int type, String name)
      Constructs a new PortInfo element.
      Parameters:
      id - The port ID
      type - The type of port (enum)
      name - The name of the port
  • Method Details

    • setConnected

      public void setConnected(boolean in)
    • isConnected

      public boolean isConnected()
    • toString

      public String toString()
      Converts this data class into a string.
      Overrides:
      toString in class Object
      Returns:
      This (a)class string.